package com.design.pattern.decorator;


/**
 * 定义具体装饰角色C
 */
public class CDecorator extends AbstractDecorator {


    public CDecorator(LoansComponent loansComponent) {
        super(loansComponent);
    }

    @Override
    public void service() {
        super.service();
        System.out.println("V0版本的基础上添加C功能,保存数据库");
    }
}
